package com.zwk.gulimall.product.event;

import com.zwk.common.constant.EventType;
import org.springframework.context.ApplicationEvent;

public class AttrEvent extends ApplicationEvent {
    private Object source;
    private EventType type;

    public AttrEvent(Object source, EventType type) {
        super(source);
        this.source=source;
        this.type=type;
    }

    @Override
    public Object getSource() {
        return source;
    }

    public EventType getType() {
        return type;
    }
}
